package com.woniu.dao;

import com.woniu.dto.FriendName;
import com.woniu.pojo.Friends;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FriendsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Friends record);

    int insertSelective(Friends record);

    Friends selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Friends record);

    int updateByPrimaryKey(Friends record);


    List<FriendName> getFriends(Long id);

    @Delete("delete * from friends where user_id=#{uid} and friend_id=#{fid}")
    int delFriend(Long uid, Long fid);
}